package evo.springboot.controller;


import com.alibaba.dubbo.config.annotation.Reference;
import evo.springboot.service.StudentService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class StudentController {
    @Reference(interfaceClass = StudentService.class,version = "1.0.0",check = false)
    private StudentService studentService;

    @RequestMapping(value = "/test")
    public @ResponseBody Object test(){
        Integer allStudent = studentService.queryAll();
        return "总人数为："+allStudent;
    }
}
